const path = require('path');
const argv = require('yargs-parser')(process.argv.slice(4));

const getPath = (dir) => {
  const appDirectory = process.cwd();
  return path.join(appDirectory, dir);
};
const APP_ENV = argv.env || 'dev';

module.exports = {
  APP_ENV,
  getPath,
  DIST: getPath('dist'),
  MATCH_NODE_MODULES: getPath('/node_modules/'),
  PATH_SRC: getPath('src'),
};
